
<%@page import="java.util.Calendar"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.text.DateFormat"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.TimeZone"%>

<%@page import="java.net.URL"%><% 

final TimeZone timeZone = TimeZone.getDefault();
final boolean daylight = timeZone.inDaylightTime(new Date());
final Locale locale = request.getLocale();
System.out.println(timeZone.getDisplayName(daylight, TimeZone.LONG, locale));
//out.print(timeZone.getDisplayName(daylight, TimeZone.LONG, locale));
Date date = new Date();
DateFormat estFormat = new SimpleDateFormat();
DateFormat gmtFormat = new SimpleDateFormat();
DateFormat mstFormat = new SimpleDateFormat();
DateFormat cstFormat = new SimpleDateFormat();
DateFormat pstFormat = new SimpleDateFormat();
TimeZone gmtTime = TimeZone.getTimeZone("GMT");
TimeZone estTime = TimeZone.getTimeZone("EST");
TimeZone mstTime = TimeZone.getTimeZone("MST");
TimeZone cstTime = TimeZone.getTimeZone("CST");
TimeZone pstTime = TimeZone.getTimeZone("PST");
Calendar cal = Calendar.getInstance();
estFormat.setTimeZone(gmtTime);
gmtFormat.setTimeZone(estTime);
cstFormat.setTimeZone(cstTime);
mstFormat.setTimeZone(mstTime);
pstFormat.setTimeZone(pstTime);
System.out.println("GMT Time: " + estFormat.format(date));
System.out.println("EST Time: " + gmtFormat.format(date));
System.out.println("MST Time: " + mstFormat.format(date));
System.out.println("CST Time: " + cstFormat.format(date));
System.out.println("PST Time: " + pstFormat.format(date));


System.out.println(estFormat.parse(estFormat.format(date)).getYear());
%>